package cn.lixufeng.order.domain;

import cn.lixufeng.basic.domain.BaseDomain;
import cn.lixufeng.org.domain.Shop;
import cn.lixufeng.pet.domain.Pet;
import cn.lixufeng.user.domain.User;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

@Data
public class AdoptOrder extends BaseDomain {

    private String digest;
    // 订单状态 -1取消 0待支付 1待发货 2待确认 3已完成
    private Integer state =0;
    private BigDecimal price;
    // 订单唯一标识
    private String orderSn;
    // 支付标识
    private String paySn;
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date lastPayTime;// 最后支付时间
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date lastConfirmTime;// 最后确认时间
    private Long pet_id;
    private Long user_id;
    private Long shop_id;

    private Shop shop;
    private User user;
    private Pet pet;

}
